-
Notifications
You must be signed in to change notification settings - Fork 33
Remove ember-cli-clipboard
#3098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hashicc
wants to merge
3
commits into
main
Choose a base branch
from
remove-ember-cli-clipboard
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
75a18ce to
2121925
Compare
hashicc
commented
Nov 26, 2025
| <CopyButton | ||
| @text={{@copyText}} | ||
| <Hds::Copy::Button | ||
| @text='Copy code' |
Collaborator
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@text is a different argument on Hds::Copy::Button (button text) than the ember-cli-clipboard CopyButton (the text to copy)
2121925 to
8105022
Compare
62b5c1b to
62795d3
Compare
62795d3 to
d6ab93d
Compare
d6ab93d to
cf8f241
Compare
cf8f241 to
52b69eb
Compare
The hds copy button uses the browser clipboard api. The writeText api can fail if the window is not active. This does not happen in practice because the window has to be active to be clicked by the user. But in tests with synthetic triggers this can fail. Stubbing the writeText method is also how hds tests their component: https://github.com/hashicorp/design-system/blob/990981b5741f9a6bf28d100c330b7865ba74e506/showcase/tests/integration/components/hds/copy/button/index-test.gts#L20
52b69eb to
7d1e770
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR removes
ember-cli-clipboardand the singleCopyButtonusage in our rose code editor toolbar.ember-cli-clipboardis not compatible with vite currently: Incompatible with Vite due to transitive dep (ember-get-config) which uses require jkusa/ember-cli-clipboard#432Hds::Copy::ButtonRose::CodeEditorwhich uses the copy button will at some point be replaced with theHds::CodeEditor(see ReplaceRose::CodeEditorwithHds::CodeEditor#2679)Screenshots (if appropriate)
Before
After
How to Test
main(eg:mainvercel deployment) and compare against this branch (eg: this branch's vercel deployment)Checklist
a11y-testslabel to run a11y audit tests if neededPCI review checklist
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.